/**
 * @param {number[]} nums
 * @return {number}
*/
var maxSubArray = function(nums) {

};
let nums = [-2,1,-3,4,-1,2,1,-5,4];
console.log(maxSubArray(nums));

